﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/Portal.Master" AutoEventWireup="true" CodeBehind="CameraView.aspx.cs" Inherits="ZHDJ.Web.Portal.CameraView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Resource/themes/default/css/jqtree.css" rel="stylesheet" />
    <script src="../Resource/js/default/jquery.min.1.12.js"></script>
    <script src="../Resource/js/jquery/tree.jquery.js"></script>
    <script type="text/javascript">

        var BindTreeClick = function () {
            $('#tree1').bind(
                'tree.click',
                function (event) {
                    var node = event.node;
                    if (node.level !== 0) {
                        $("#branchdaolink").attr("href", "../BranchIndex.aspx?BranchID=" + node.id);
                        $("span", "#branchdaolink").click();
                        window.parent.closeDaoheng();
                    }
                }
            );
        }
        var treePara = {
            closedIcon: $('<img class="fa " src="../../Resource/themes/default/images/Default/triangle1.gif" />'),
            openedIcon: $('<img class="fa " src="../../Resource/themes/default/images/Default/triangle3.gif" />'),
            selectable: true,
            autoEscape: false,
            autoOpen: 0,
            onCreateLi: function (node, $li) {
            }
        };
        $(function () {

            $('#tree1').tree(treePara);

            BindTreeClick();

            $("#btnSearch").click(function () {
                var dataUrl = "BranchNavigation.aspx?Json=1&Search=" + $("#QueryText").val();
                $('#tree1').tree('loadDataFromUrl', dataUrl);
            });
            var dd = $(".jqtree-tree[role='tree']");
            dd.eq(0).css({ "height": "0" });
        });

    </script>
    <style>
        body {
            margin: 0 auto;
            font-size: 12px;
            font-family: "宋体", Arial, Helvetica, sans-serif;
            line-height: normal;
            background-repeat: repeat-x;
            background-position: top;
        }

        .btn {
            height: 25px;
            width: 50px;
        }

        .leftclass {
            margin: 0 auto;
            font-size: 12px;
            font-family: "宋体", Arial, Helvetica, sans-serif;
            line-height: normal;
            background-repeat: repeat-x;
            background-position: top;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script src="../Resource/js/superfish/superfish.js"></script>
    <div>
        <div>
            <div style="float:left; height: 500px; width: 238px; background-color: #ffffff; padding-left: 10px; overflow: auto; border-top: #ccc solid 2px; border: 1px solid #ff0000">
                <div id="tree1" data-url="other/BranchNavigation.aspx?Json=1"></div>
            </div>
            <div style="float:left;border:1px solid" >
                <iframe src="http://www.baidu.com" id="Iframe" frameborder="0" scrolling="no" style="border:0px;height:600px;width:700px"></iframe>
            </div>
        </div>
        <div style="display: none"><a id="branchdaolink" href="#" target="_blank"><span>33</span></a></div>
    </div>
</asp:Content>

